package common;

import java.io.Serializable;
import java.sql.Date;

/**
 * This class represents a structure of a request as it appears in the database.
 */

public class Request implements Serializable {
	
	private int idRequests;
	private String Department;
	private int UserID;
	private String Role;
	private String Email;
	private Date dateRequest;
	private String Description;
	private String Comments;
	private int idSupervisor;
	private Date DateOfStartTreatment;
	private String Status;
	private Date EndDate;
	private int idStage;
	private String Reasons;
	private String NameOfStage;
	private FileUpload FileInfo = null;
	
	
	public Request(int idrequest,String depart,int userid)
	{
		idRequests=idrequest;
		Department=depart;
		UserID=userid;
	}
	
	public Request() {
		// TODO Auto-generated constructor stub
	}
	/**
	 * Get request ID
	 */
	public int getIdRequest() {
		return idRequests;
	}
	/**
	 * Set request ID
	 */
	public void setUserID(int UserID) {
		this.UserID = UserID;
	}
	/**
	 * Get supervisor ID
	 */
	public int getidSupervisor() {
		return idSupervisor;
	}
	/**
	 * Set supervisor ID
	 */
	public void setidSupervisor(int idSupervisor) {
		this.idSupervisor = idSupervisor;
	}
	/**
	 * Get the treatment start date
	 */
	public Date getDateOfStartTreatment() {
		return DateOfStartTreatment;
	}
	/**
	 * Set the treatment start date
	 */
	public void setDateOfStartTreatment(Date DateOfStartTreatment) {
		this.DateOfStartTreatment = DateOfStartTreatment;
	}
	/**
	 * Get the treatment status
	 */
	public String getStatus() {
		return Status;
	}
	/**
	 * Set the treatment status
	 */
	public void setStatus(String Status) {
		this.Status = Status;
	}
	/**
	 * Get the treatment end date
	 */
	public Date getEndDate() {
		return EndDate;
	}
	/**
	 * Set the treatment end date
	 */
	public void setEndDate(Date EndDate) {
		this.EndDate = EndDate;
	}
	/**
	 * Get the current stage ID
	 */
	public int getidStage() {
		return idStage;
	}
	/**
	 * Set the current stage ID
	 */
	public void setidStage(int idStage) {
		this.idStage = idStage;
	}
	/**
	 * Get the ID of the user that created the request
	 */
	public int getUserID() {
		return UserID;
	}
	/**
	 * Set the ID of the user that created the request
	 */
	public void setIdRequest(int idRequests) {
		this.idRequests = idRequests;
	}
	/**
	 * Get the department of the user that created the request
	 */
	public String getDepartment() {
		return Department;
	}
	/**
	 * Set the department of the user that created the request
	 */
	public void setDepartment(String Department) {
		this.Department = Department;
	}
	/**
	 * Get the role of the user that created the request
	 */
	public String getRole() {
		return Role;
	}
	/**
	 * Set the role of the user that created the request
	 */
	public void setRole(String Role) {
		this.Role = Role;
	}
	/**
	 * Get the creation date of the request
	 */
	public Date getdateRequest() {
		return dateRequest;
	}
	/**
	 * Set the creation date of the request
	 */
	public void setdateRequest(Date dateRequest) {
		this.dateRequest = dateRequest;
	}
	/**
	 * Get the email of the user that created the request
	 */
	public String getEmail() {
		return Email;
	}
	/**
	 * Set the email of the user that created the request
	 */
	public void setEmail(String email) {
		this.Email = email;
	}
	/**
	 * Set the description of the request
	 */
	public void setDescription(String Description) {
		this.Description = Description;
	}
	/**
	 * Get the description of the request
	 */
	public String getDescription() {
		return Description;
	}
	/**
	 * Get the comments of the request
	 */
	public String getComments() {
		return Comments;
	}
	/**
	 * Set the comments of the request
	 */
	public void setComments(String Comments) {
		this.Comments = Comments;
	}
	/**
	 * Set the reasons of the request
	 */
	public void setReasons(String Reasons) {
		this.Reasons = Reasons;
	}
	/**
	 * Get the reasons of the request
	 */
	public String getReasons() {
		return Reasons;
	}
	/**
	 * Set the name of the current stage of the request
	 */
	public void setNameOfStage(String NameOfStage) {
		this.NameOfStage = NameOfStage;
	}
	/**
	 * Get the name of the current stage of the request
	 */
	public String getNameOfStage() {
		return NameOfStage;
	}
	/**
	 * Set the file details of the request
	 */
	public void setFileInfo(FileUpload FileInfo) {
		this.FileInfo = FileInfo;
	}
	/**
	 * Get the file details of the request
	 */
	public FileUpload getFileInfo() {
		return FileInfo;
	}
}
